// TinyCurses IO implementation
//--------------------------------
#ifndef SDLCURSESIO_H
#define SDLCURSESIO_H
#include "io.h"
#include <SDL.h>

class SDLCursesIO : public IO {
public:

    static const uint FONT_WIDTH  =  9;
    static const uint FONT_HEIGHT = 16;

    SDLCursesIO();
    virtual ~SDLCursesIO();

    virtual void SetTitle( const std::string& title );
    virtual void Render( char animation );

    virtual uint Input();

private:

    virtual void InitInternal();
    virtual void DestroyInternal();

    SDL_Surface* _screen;
    SDL_Surface* _font;

    uint _xSpace;
    uint _ySpace;

    bool _quit;

};

#endif
